<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/admin/logistics/index";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/admin/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <!--主要TD start-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main">
                        <div class="itemtitle">
                            <h3>物流管理</h3>
                            <ul>
                                <a class="link-btn" href="/admin/index.php/articles/add">添加文章</a>
                            </ul>
                        </div>
                        <script src="{{$smarty.const.APP_URL}}templates/admin/js/DatePicker/WdatePicker.js" type="text/javascript"></script>
                            <form name="searchform" action="/admin/index.php/articles" method="post">
                                    <table class="tb">
                                    <tbody>
                                    <tr>
                                    <td class="tbheader" colspan="38">搜索文章</td>
                                    </tr>
                                    <tr>
                                    <td class="td" valign="middle" colspan="38">
                                    <center>
                                    <label>搜索:</label>
                            <input type="text" value="" size="12" name="s">
                                    <label>发布时间:</label>
                            <select name="type">
                                    <option value="gr">大于(>)</option>
                            <option value="eq">等于(=)</option>
                                    <option value="le">小于(<)</option>
                            </select>
                            <input type="text" size="12" value="" onclick="WdatePicker()" name="t" realvalue="">
                                    <label>分类:</label>
                            <select name="c">
                                    <option value="0">全部分类</option>
                                    <option value="-1" style="color:red;">未发布的文章</option>
                                    <option value="1" style="color:#cc4911;font-weight:bold;">dsfdsf-dsds (22)</option>
                                    </select>
                                    <input class="cancel" type="submit" value="搜索文章" name="searcharticle">
                                    </center>
                                    </td>
                                    </tr>
                                    </tbody>
                                    </table>
                                    </form>
                                    <form name="articlesform" action="/admin/index.php/articles/updatearticles" method="post">
                                    <table class="tb">
                                    <tbody>
                                    <tr>
                                    <td class="tbheader" colspan="38">搜索到的文章列表(22个)</td>
                            </tr>
                            <tr class="tr0">
                                    <td class="td">排序</td>
                                    <td class="td">文章标题(编辑)</td>
                                    <td class="td">所属分类</td>
                                    <td class="td">作者</td>
                                    <td class="td">状态</td>
                                    <td class="td">推荐</td>
                                    <td class="td">点击数</td>
                                    <td class="td">日期</td>
                                    <td class="td">浏览</td>
                                    <td class="td last">
                                    <input id="checkAll" type="checkbox" for="deletea_ids[]">
                                    <label for="checkAll">删除</label>
                                    </td>
                                    </tr>
                                    <tr>
                                    <td class="td">
                                    <input type="hidden" value="22" name="a_ids[]">
                                    <input type="text" size="4" value="22" name="sorts[]">
                                    </td>
                                    <td class="td">
                                    <a title="英文: efwef" href="/admin/index.php/articles/edit?a_id=22">fds321</a>
                                    </td>
                                    <td class="td">dsfdsf</td>
                                    <td class="td">系统管理员</td>
                                    <td class="td">
                                    <select name="is_shows[]">
                                    <option value="1">发布</option>
                                    <option value="0" style="color:red;">隐藏</option>
                                    </select>
                                    </td>
                                    <td class="td">
                                    <select name="is_bests[]">
                                    <option value="0">否</option>
                                    <option value="1" style="color:orange;">是</option>
                                    </select>
                                    </td>
                                    <td class="td">0</td>
                                    <td class="td">2015-12-17</td>
                                    <td class="td">
                                    <a onclick="alert('前台文章功能暂未开放!');return false;" target="_blank" href="#">
                                    <img src="{{$smarty.const.APP_URL}}templates/admin/images/view.gif">
                                    </a>
                                    </td>
                                    <td class="td last">
                                    <input type="checkbox" value="22" name="deletea_ids[]">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td class="td">
                                    <input type="hidden" value="21" name="a_ids[]">
                                    <input type="text" size="4" value="21" name="sorts[]">
                                    </td>
                                    <td class="td">
                                    <a title="英文: 123e3qwasd123" href="/admin/index.php/articles/edit?a_id=21">defdd</a>
                                    </td>
                                    <td class="td">dsfdsf</td>
                                    <td class="td">系统管理员</td>
                                    <td class="td">
                                    <select name="is_shows[]">
                                    <option value="1">发布</option>
                                    <option value="0" style="color:red;">隐藏</option>
                                    </select>
                                    </td>
                                    <td class="td">
                                    <select name="is_bests[]">
                                    <option value="0">否</option>
                                    <option value="1" style="color:orange;">是</option>
                                    </select>
                                    </td>
                                    <td class="td">0</td>
                                    <td class="td">2015-12-17</td>
                                    <td class="td">
                                    <a onclick="alert('前台文章功能暂未开放!');return false;" target="_blank" href="#">
                                    <img src="{{$smarty.const.APP_URL}}templates/admin/images/view.gif">
                                    </a>
                                    </td>
                                    <td class="td last">
                                    <input type="checkbox" value="21" name="deletea_ids[]">
                                    </td>
                                    </tr>
                                    <tr>
                                    <td class="td">
                                    <input type="hidden" value="20" name="a_ids[]">
                                    <input type="text" size="4" value="20" name="sorts[]">
                                    </td>
                                    <td class="td">
                                    <a title="英文: wefasdvq22" href="/admin/index.php/articles/edit?a_id=20">werrfedv</a>
                                    </td>
                                    <td class="td">dsfdsf</td>
                                    <td class="td">系统管理员</td>
                                    <td class="td">
                                    <select name="is_shows[]">
                                    <option value="1">发布</option>
                                    <option value="0" style="color:red;">隐藏</option>
                                    </select>
                                    </td>
                                    <td class="td">
                                    <select name="is_bests[]">
                                    <option value="0">否</option>
                                    <option value="1" style="color:orange;">是</option>
                                    </select>
                                    </td>
                                    <td class="td">0</td>
                                    <td class="td">2015-12-17</td>
                                    <td class="td">
                                    <a onclick="alert('前台文章功能暂未开放!');return false;" target="_blank" href="#">
                                    <img src="{{$smarty.const.APP_URL}}templates/admin/images/view.gif">
                                    </a>
                                    </td>
                                    <td class="td last">
                                    <input type="checkbox" value="20" name="deletea_ids[]">
                                    </td>
                                    </tr>
                                    <tr>
                                        <td class="td" valign="middle" colspan="38">
                                            <div class="PageListDiv">
                                                <ol class="PageList">
                                                    <li>
                                                        <span class="NoPagePrev"> << </span>
                                                    </li>
                                                    <li>
                                                        <span class="CurrentPage">1</span>
                                                    </li>
                                                    <li>
                                                        <a onfocus="this.blur()" href="/admin/index.php/articles?p=2">2</a>
                                                    </li>
                                                    <li>
                                                        <a class="PageNext" onfocus="this.blur()" href="/admin/index.php/articles?p=2"> >> </a>
                                                    </li>
                                                </ol>
                                            </div>
                                        </td>
                                    </tr>
                                    </tbody>
                                    </table>
                                    <div class="submit">
                                    <input class="save" type="submit" value="保存更新" name="updatearticles">
                                    <input class="cancel" type="submit" value="删除文章" onclick="var _me=$(this);$.dialog({title:'操作确认',lock:true,content:'确定删除所选文章吗?<br><br><span class=red>注: 所选文章将被永久删除!</span>',okValue:' 确定 ',ok:function(){_me.closest('form').submit();},cancelValue:'取消',cancel:true});return false;" name="deletearticles">
                                    </div>
                                    </form>
                                    <!--底部信息 start-->
                                    {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                                    <!--底部信息 end-->
                            </div>
                            </div>
                            </td>
            <!--主要TD end-->
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});

        //全选checkbox
        $("#checkAll").click(function(e){
            $("input[name='" + $(this).attr("for") + "']").attr("checked", this.checked);
        });
    });
</script>
</body>
</html>